//
//  GQJFloatingButtonController.m
//  TotalDemo
//
//  Created by gujian on 16/7/19.
//  Copyright © 2016年 gujian. All rights reserved.
//

#import "GQJFloatingButtonController.h"
#import "GQJFPSLabel.h"

@interface GQJFloatingButtonController()
{
    UIButton *_floatingButton;
    GQJFPSLabel *_fpsLabel;
}

@end

@implementation GQJFloatingButtonController

- (void)loadView
{
    _floatingButton = [UIButton buttonWithType:UIButtonTypeCustom];
    
    self.view = _floatingButton;
    _fpsLabel = [[GQJFPSLabel alloc] initWithFrame:CGRectMake(0, 0, 52, 52)];
    [self.view addSubview:_fpsLabel];
}

- (void)viewDidLoad
{
    [super viewDidLoad];

    _floatingButton.backgroundColor = [UIColor lightGrayColor];
    _floatingButton.titleLabel.font = [UIFont systemFontOfSize:11.0];
    _floatingButton.titleLabel.textColor = [UIColor whiteColor];
    _floatingButton.layer.borderWidth = 1.0;
    _floatingButton.layer.borderColor = [UIColor grayColor].CGColor;
    _floatingButton.alpha = 0.8;
    [_floatingButton setTitle:@"" forState:UIControlStateNormal];

}

@end
